/**/ 
import Cookies from 'js-cookie'
import user from '../utils/user'
import store from '../store/index';
import api from '../api/GetUser'
import Login from '__PAGE__/login' 
import Customer from '__PAGE__/customer'
import Domain from '__PAGE__/domain'
import DomainSwitchBind from '__PAGE__/domainSwitchBind'
import SwitchTraffic from '__PAGE__/switchManage'


import Vue from 'vue'
import Router from 'vue-router'

/*NotFound*/
import NotFound from '__PAGE__/notFound'
/*NotFound*/ 

Vue.use(Router)


 
const GLOBAL_ROUTES = [ 
    {
      path: '*',
      name: 'NotFound',
      component: NotFound,
      meta:{
        requireAuth:false
      }
    },
    {
      path: '/',
      name: 'customer',
      component: Customer,
      meta:{
        requireAuth:false
      }
    }, 
    {
      path: '/login',
      name: 'login',
      component:Login ,
      meta:{
        requireAuth:false
      }
    },   
    {
      path: '/customer',
      component: Customer,
      name: 'customer',
      meta:{
        requireAuth:false
      }
    },

    {
      path: '/domain',
      component: Domain,
      name: 'domain',
      meta:{
        requireAuth:false
      }
    },

    {
      path: '/domainbind',
      component: DomainSwitchBind,
      name: 'domainswitchbind',
      meta:{
        requireAuth:false
      }
    },

    {
      path: '/switchtraffic',
      component: SwitchTraffic,
      name: 'SwitchTraffic',
      meta:{
        requireAuth:false
      }
    }, 

  ]  
let router = new Router({
  linkActiveClass: "active",
  routes: GLOBAL_ROUTES
}); 

export default router;